package com.data.springbootdynamicdata.controller;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.*;



/***
 *  Created with IntelliJ IDEA.
 *  Author:  wenlin
 *  Date:  2018/4/24 9:30
 *  Description:implements WebMvcConfigurer
 **/
@Component
public class WebMvcConfg implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new SessionInterceptor()).addPathPatterns("/user/*").excludePathPatterns("/static/*");
    }

}
